home *** CD-ROM | disk | FTP | other *** search
- Short: Rot13 'encoding' source code
- Author: unknown
- Uploader: Andreas_Kleinert@t-online.de
- Type: dev/c
-
- ------------------------ snip -------------------------
-
- /* rot13.c Bei EBCDIC klappt das natuerlich nicht! */
-
- #include <ctype.h>
- #include <stdio.h>
-
- int main()
- {
- int c;
-
- while ((c=getc(stdin))!=EOF)
- putc(islower(c)? 'a'+(c-'a'+13)%26 :
- isupper(c)? 'A'+(c-'A'+13)%26 : c, stdout);
- return 0;
- }
-
- ------------------------ snip -------------------------
-
- --
- ARK, 19/Oct/98
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 272 191 29.7% 19-Oct-98 17:07:46 +rot13.c
- 511 295 42.2% 19-Oct-98 17:07:12 +rot13.readme
- -------- ------- ----- --------- --------
- 783 486 37.9% 19-Oct-98 22:11:14 2 files
-